package com.jklan.zhiqibackend.service;

import com.jklan.zhiqibackend.dto.request.LoginRequest;
import com.jklan.zhiqibackend.dto.request.RegisterRequest;
import com.jklan.zhiqibackend.entity.Users;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jklan.zhiqibackend.vo.response.LoginVO;

/**
 * @author 30688
 * @description 针对表【users(用户表)】的数据库操作Service
 * @createDate 2025-10-31 22:06:17
 */
public interface UsersService extends IService<Users> {

    /**
     * 用户注册
     */
    void register(RegisterRequest registerRequest);

    /**
     * 用户登录
     */
    LoginVO login(LoginRequest loginRequest);

    /**
     * 检查用户名是否已存在
     */
    boolean checkUsernameExists(String username);

    /**
     * 检查邮箱是否已存在
     */
    boolean checkEmailExists(String email);
}
